//
// Created by jsjxsy on 2022/8/29.
//
#include <iostream>
#include <string>
using namespace std;
//模版类作为参数传递
template<typename T>
class Base {
  T m;
};

//指定类型
class Son : public Base<string> {
};

//范型继承
template<typename T1, typename T2>
class Son2 : public Base<T1> {
  T2 obj;
};

int main() {
  Son son;
  Son2<string, int> son2;
  return 0;
}

